package com.k8sops.backend.common;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Base model for all DevOps System entities
 */
@Data
public class DOSModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * Primary key ID
     */
    private Long id;

    /**
     * Creation time
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * Update time
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * Created by
     */
    private String createBy;

    /**
     * Updated by
     */
    private String updateBy;

    /**
     * Logical deletion flag (0: not deleted, 1: deleted)
     */
    private Boolean isDeleted;
}
